@extends('admin.layout.index')
@section('title', '编辑评论')
@section('header', '编辑评论')
@section('con')
	<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-lg-6 col-lg-offset-3">
                    @foreach($res as $k=>$v)
                    <form role="form" method="get" action="/admin/comment/update">
                        <input type="hidden" name="id" value="{{$v->id}}">
                        
                        <div class="form-group">
                            <label>评论内容</label>
                            <textarea rows="3" class="form-control" name="text">{{$v->contentp}}</textarea>
                        </div>
                        <div class="form-group">
                            <button class="btn btn-warning disabled" type="button">被赞<h4>{{$v->pass}}</h4>次</button>
                            <button class="btn btn-primary disabled" type="button">被踩<h4>{{$v->answer}}</h4>次</button>
                        </div>
                        <button class="btn btn-default" type="submit">修改</button>
                    </form>
                    @endforeach
                </get             
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>
@endsection